<!-- NOTE: this is a just subset of conf/login-config.xml.
     It defines a pseudo-user with an encrypted password.
-->

<!-- This login domain defines a single user that holds a name and encypted password
     It is used to log in to a database without requiring a clear text password in the 
	 datasource configuration file (the actual login is name: guest, password: password)
     The encrypted password was created by setting up the classpath and running 
     java org.jboss.resource.security.SecureIdentityLoginModule password
-->
	
<application-policy name="derby-encrypted-pseudouser">
  <authentication>
     <login-module code="org.jboss.resource.security.SecureIdentityLoginModule"
      flag="required">
        <module-option name="userName">guest</module-option>
		<!-- the encypted password -->
        <module-option name="password">5dfc52b51bd35553df8592078de921bc</module-option>  
        <module-option name="managedConnectionFactoryName">jboss.jca:name=CatalogDS,service=LocalTxCM</module-option>
     </login-module>
  </authentication>
</application-policy>
	